Multi-port battery charge and discharge system

ABSTRACT

A multi-port battery charge and discharge system used in the charge and discharge battery pack application. The multi-port battery charge and discharge system has N voltage converting circuits, each of which can operate in a charge mode to charge a battery pack or in a discharge mode to supply power sinks. The N voltage converting circuits can be operated in a master-slave configuration with one of the N voltage converting circuits set as a master voltage converting circuit and the remained ones set as slave voltage converting circuits. In a charge state, the master voltage converting circuit provides a regulated current signal to charge the battery pack, and the slave voltage converting circuits provide slave current signals to complementally charge the battery pack.

TECHNICAL FIELD

The present invention relates to electrical circuit, more particularly but not exclusively relates to multi-port battery charge and discharge systems.

BACKGROUND

With the rapid development of portable electronic devices, such as tablets, phablets, laptops, thin computing devices, power bank, etc., battery charge and discharge circuit is widely used in various portable electronic devices. As the entertainment function of the portable electronic devices expands, battery capacity becomes larger and larger to ensure enough navigation time. In consequence, portable electronic device manufacturers desire to seek solutions to charge their batteries much faster than before.

Generally, the portable electronic devices may be charged via a Universal Serial Bus (USB) port. However, usually, the charge current is limited based on the existed standard USB charge Specification. For example, the maximum charge current which can be drawn from an AC power source via a USB port to charge the portable electronic device is limited to 3A in accordance with the standard USB type-C Specification. Therefore, it is desired to have a solution for realizing faster charge to the portable electronic devices by a larger current.

SUMMARY

In accomplishing the above and other objects, there has been provided, in accordance with an embodiment of the present disclosure, a multi-port battery charge and discharge system comprising a plurality of voltage converting circuits; a plurality of USB ports, corresponding to the plurality of voltage converting circuits; and a plurality of port connecting switches, corresponding to the plurality of voltage converting circuits. Each one of the plurality of voltage converting circuits comprises a first pin coupled to a corresponding one of the plurality of USB ports through a corresponding one of the plurality of port connecting switches, and a second pin coupled to a battery pack.

In accordance with an embodiment of the present invention, when the multi-port battery charge and discharge system is configured to operate in a charge state, the plurality of voltage converting circuits are configured to operate in a charge mode, wherein one of the plurality of voltage converting circuits is configured to generate a master current signal at its second pin and to regulate the master current signal based on a voltage feedback signal indicative of a voltage of the battery pack and a current feedback signal indicative of a current flowing through the battery pack, and wherein each one of the remained ones of the plurality of voltage converting circuits is configured to generate a predetermined supplemental current signal at its second pin.

The multi-port battery charge and discharge system may further comprise a plurality of pin connecting switches, wherein the first pins of every two successively neighboring voltage converting circuits of the plurality of voltage converting circuits are coupled to each other through one of the plurality of pin connecting switches.

In accordance with an embodiment of the present invention, when the multi-port battery charge and discharge system is configured to operate in the charge state, the plurality of port connecting switches are turned on while the plurality of pin connecting switches are turned off, and each one of the plurality of USB ports is coupled to a corresponding one of a plurality of power sources or to a same power source.

In accordance with an embodiment of the present invention, when the multi-port battery charge and discharge system is configured to operate in the charge state, one USB port of the plurality of USB ports is coupled to a power source, and wherein the corresponding one port connecting switch which is coupled to the one USB port that is coupled to the power source is turned on while the remained port connecting switches of the plurality of port connecting switches are turned off, and wherein the plurality of pin connecting switches are turned on.

In accordance with an embodiment of the present invention, when the multi-port battery charge and discharge system is configured to operate in a discharge state, each one of the plurality of voltage converting circuits is configured to operate in a discharge mode to convert the voltage of the battery pack to a corresponding one output voltage signal at its first pin.

In accordance with an embodiment of the present invention, when the multi-port battery charge and discharge system is configured to operate in the discharge state, the plurality of port connecting switches are turned on while the plurality of pin connecting switches are turned off.

In accordance with an embodiment of the present invention, when the multi-port battery charge and discharge system is configured to operate in the discharge state, one USB port of the plurality of USB ports is coupled to a power sink, and wherein the corresponding one port connecting switch which is coupled to the one USB port that is coupled to the power sink is turned on while the remained port connecting switches of the plurality of port connecting switches are turned off, and wherein the plurality of pin connecting switches are turned on.

In accordance with an embodiment of the present invention, when the multi-port battery charge and discharge system is configured to operate in a charge and discharge state, a first portion of the plurality of voltage converting circuits is configured to operate in a charge mode while a second portion of the plurality of voltage converting circuits is configured to operate in a discharge mode.

In accordance with an embodiment of the present invention, when the multi-port battery charge and discharge system is configured to operate in the charge and discharge state, one voltage converting circuit in the first portion of the plurality of voltage converting circuits is configured to generate a master current signal at its second pin and to regulate the master current signal based on the voltage feedback signal indicative of the voltage of the battery pack and the current feedback signal indicative of the current flowing through the battery pack.

In accordance with an embodiment of the present invention, when the multi-port battery charge and discharge system is configured to operate in the charge and discharge state, each one voltage converting circuit in the second portion of the plurality of voltage converting circuits is configured to convert the voltage of the battery pack to a corresponding one output voltage signal at its first pin.

In accordance with an embodiment of the present invention, when the multi-port battery charge and discharge system is configured to operate in the discharge state, one USB port of the plurality of USB ports is coupled to a power sink, and wherein the corresponding one port connecting switch which is coupled to the one USB port that is coupled to the power sink is turned on while the remained port connecting switches of the plurality of port connecting switches are turned off, and wherein the plurality of pin connecting switches are turned on.

In accordance with an embodiment of the present invention, when the multi-port battery charge and discharge system is configured to operate in a charge and discharge state, a first portion of the plurality of voltage converting circuits is configured to operate in a charge mode while a second portion of the plurality of voltage converting circuits is configured to operate in a discharge mode.

In accordance with an embodiment of the present invention, when the multi-port battery charge and discharge system is configured to operate in the charge and discharge state, one voltage converting circuit in the first portion of the plurality of voltage converting circuits is configured to generate a master current signal at its second pin and to regulate the master current signal based on the voltage feedback signal indicative of the voltage of the battery pack and the current feedback signal indicative of the current flowing through the battery pack.

In accordance with an embodiment of the present invention, when the multi-port battery charge and discharge system is configured to operate in the charge and discharge state, each one voltage converting circuit in the second portion of the plurality of voltage converting circuits is configured to convert the voltage of the battery pack to a corresponding one output voltage signal at its first pin.

In accordance with an embodiment of the present invention, each one of the plurality of voltage converting circuits further comprises a third pin, and wherein the third pin of a corresponding one of the plurality of voltage converting circuits is configured to instruct the corresponding one of the plurality of voltage converting circuits whether to operate in a single circuit application or in a multiple circuits application.

In accordance with an embodiment of the present invention, in the multiple circuits application, the third pin of a corresponding one of the plurality of voltage converting circuits is further configured to instruct the corresponding one of the plurality of voltage converting circuits whether to operate as a mater circuit or as a slave circuit.

In accordance with an embodiment of the present invention, the third pin of a corresponding one of the plurality of voltage converting circuits is configured to receive a corresponding one address signal to instruct the corresponding one of the plurality of voltage converting circuits whether to operate in a single circuit application or in a multiple circuits application.

In accordance with an embodiment of the present invention, the third pin of a corresponding one of the plurality of voltage converting circuits is connected to a logic ground through a corresponding one resistive element.

In accordance with an embodiment of the present invention, each one of the plurality of voltage converting circuits further comprises a fourth pin, and wherein the fourth pin of a corresponding one of the plurality of voltage converting circuits is configured to set the corresponding one of the plurality of voltage converting circuits to operate in the charge mode or in a discharge mode.

In accordance with an embodiment of the present invention, each one of the plurality of voltage converting circuits further comprises a fifth pin connected to a microprocessor, and wherein the predetermined supplemental current signal is predetermined by the microprocessor.

In accordance with an embodiment of the present invention, the fifth pin of a corresponding one of the plurality of voltage converting circuits is connected through a corresponding one current limiting resistor to a logic ground instead of to the microprocessor.

In accordance with an embodiment of the present invention, the multi-port battery charge and discharge system may further comprise a plurality of port controllers, wherein each one of the plurality of port controllers is coupled between a corresponding one of the plurality of USB ports and the microprocessor, and is configured to detect and control a port voltage signal at the corresponding one USB port and a port current signal flowing through the corresponding one USB port, and further configured to transmit the port voltage signal and the port current signal of the corresponding one USB port to the microprocessor.

There has also been provided, in accordance with an embodiment of the present disclosure, a multi-port battery charge and discharge system, comprising: a first voltage converting circuit, comprising a first pin coupled to a first USB port through a first port connecting switch, and a second pin coupled to a battery pack; and a second voltage converting circuit, comprising a first pin coupled to a second USB port through a second port connecting switch, and a second pin coupled to the battery pack.

In accordance with an embodiment of the present invention, when the multi-port battery charge and discharge system is configured to operate in a charge state, the first voltage converting circuit is configured to operate in a charge mode to generate a first current signal at its second pin, and wherein the first current signal is regulated based on a voltage feedback signal indicative of a voltage of the battery pack and a current feedback signal indicative of a current flowing through the battery pack, and wherein the second voltage converting circuit is configured to operate in the charge mode to generate a second current signal at its second pin, and wherein the second current signal is predetermined and constant.

BRIEF DESCRIPTION OF THE DRAWINGS

Non-limiting and non-exhaustive embodiments are described with reference to the following drawings.

FIG. 1 schematically illustrates a multi-port battery charge and discharge system 100 in accordance with an embodiment of the present invention.

FIG. 2 schematically illustrates a multi-port battery charge and discharge system 200 in accordance with an alternative embodiment of the present invention.

FIG. 3 schematically illustrates a block diagram of the voltage converting circuit 11-i in FIGS. 1 and 2 in accordance with an embodiment of the present invention.

FIG. 4 schematically illustrates a block diagram of the switching circuit 101 and the control circuit 102 shown in FIG. 3 in accordance with an embodiment of the present invention.

FIG. 5 schematically illustrates a block diagram of the voltage converting circuit 11-i in FIGS. 1 and 2 in accordance with an alternative embodiment of the present invention.

FIG. 6 schematically illustrates a multi-port battery charge and discharge system 600 in accordance with an embodiment of the present invention.

The use of the same reference label in different drawings indicates the same or like components.

DETAILED DESCRIPTION

In the present application, numerous specific details are provided, such as examples of circuits, components, and methods, to provide a thorough understanding of embodiments of the invention. These embodiments are exemplary, not to confine the scope of the invention. Persons of ordinary skill in the art will recognize, however, that the invention can be practiced without one or more of the specific details. In other instances, well-known details are not shown or described to avoid obscuring aspects of the invention. Some phrases are used in some exemplary embodiments. However, the usage of these phrases is not confined to these embodiments.

Several embodiments of the present invention are described below with reference to battery charge and discharge circuit and associated control circuit.

FIG. 1 schematically illustrates a multi-port battery charge and discharge system 100 in accordance with an embodiment of the present invention. In the embodiment shown in FIG. 1, the multi-port battery charge and discharge system 100 may comprise N battery charging circuits (11-1, 11-2, . . . , 11-N), wherein N is an integer greater than or equal to 2. One of ordinary skill in the art would understand that the value of N can be flexibly chosen depending on design specifications without departing from the scope of the present disclosure. In the exemplary embodiment of FIG. 1, the N voltage converting circuits (11-1, 11-2, . . . , 11-N) are identical circuits having the same schematic structures and functions. In the exemplary embodiment of FIG. 1, each one of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may comprise a plurality of pins, including but not limited to a mode pin OTG, a port connecting pin IN, a current feedback pin IA, an address pin ADDR, a system pin SYS, a battery voltage pin BAT, a battery current pin IBAT, a driving pin BG, and a ground pin GND. It should be appreciated that each one of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may comprise as many pins as needed or desired according to various practical application requirements.

In the exemplary embodiment of FIG. 1, the multi-port battery charge and discharge system 100 may further comprise N USB ports (21, 22, . . . , 2N) corresponding to the N voltage converting circuits (11-1, 11-2, . . . , 11-N), a plurality of port connecting switches (31, 32, . . . , 3N), a plurality of pin connecting switches (41, 42, . . . , 4(N-1)), an external selection indicator 50, a mode selection indicator 60, a battery switch 70 and a battery pack 80. The battery pack 80 may comprise any known configuration of one or more battery cells (e.g., a single-cell configuration, a multi-cell configuration, a multi-stack configuration, etc.) and may use any suitable chemistry that allows for recharging.

In the exemplary embodiment of FIG. 1, the multi-port battery charge and discharge system 100 may be configured to operate in a charge state, a discharge state and a charge and discharge state. And each one of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may be configured to operate in a charge mode or a discharge mode. For example, when the multi-port battery charge and discharge system 100 operates in the charge state, each one of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may operate in the charge mode; when the multi-port battery charge and discharge system 100 operates in the discharge state, each one of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may operate in the discharge mode; when the multi-port battery charge and discharge system 100 operates in the charge and discharge state, a first portion of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may operate in the charge mode, and a second portion (e.g. the remained portion except the first portion) of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may operate in the discharge mode. But one of ordinary skill in the art should understand that the second portion does not necessarily be the whole remained portion except the first portion of the N voltage converting circuits (11-1, 11-2, . . . , 11-N), for example, there may be a third portion (different from the first portion and the second portion) of the N voltage converting circuits staying idle (voltage converting circuits in the third portion may not be operating, neither in the charge mode nor in the discharge mode).

In the exemplary embodiment of FIG. 1, for each i=1, 2, . . . , N, the mode pin OTG of the voltage converting circuit 11-i may be coupled to the mode selection indicator 60 to receive an OTG signal VOTG. The OTG signal VOTG may be used to configure the voltage converting circuit 11-i to operate in the charge mode or in the discharge mode. In some embodiments, the mode selection indicator 60 may be a source of a suitable digital signal that can serve to instruct the voltage converting circuit 11-i whether to operate in the charge mode or in the discharge mode. In such an application, the OTG signal VOTG is a logic signal having a high logic state and a low logic state. For example, when the OTG signal VOTG is at the high logic state, the voltage converting circuit 11-i may be configured to operate in the charge mode, when the OTG signal VOTG is at the low logic state, the voltage converting circuit 11-i may be configured to operate in the discharge mode. In other embodiments, the mode selection indicator 60 may be a source of a suitable analog signal, or a resistive element. For example, a connection to ground potential (i.e., resistance of the resistive element is 0Ω) may serve to instruct the voltage converting circuit 11-i should operate in the charge mode while a non-zero resistance value of the resistive element (e.g., 10 KΩ, 20 KΩ, etc.) may serve to instruct the voltage converting circuit 11-i should operate in the discharge mode. In an embodiment, the mode selection indicator 60 may be part of an external controller, such as a micro programmed control unit (MCU), a single chip microcomputer (SCM), or an embedded controller (EC), etc. That is to say, the external controller may be configured to provide the OTG signal VOTG to the OTG pin of the voltage converting circuit 11-i to instruct the voltage converting circuit 11-i to operate in the charge mode or in the discharge mode.

For each i=1, 2, . . . , N, the port connecting pin IN of the voltage converting circuit 11-i may be coupled to a corresponding one USB port 2 i through a corresponding one port connecting switch 3 i, for example, the port connecting pin IN of the first voltage converting circuit 11-1 is coupled to the first USB port 21 through the first port connecting switch 31, the port connecting pin IN of the second voltage converting circuit 11-2 is coupled to the second USB port 22 through the second port connecting switch 32, and the port connecting pin IN of the Nth voltage converting circuit 11-N is coupled to the Nth USB port 2N through the Nth port connecting switch 3N, and so forth.

In the exemplary embodiment of FIG. 1, the port connecting pins IN of every two successively neighboring voltage converting circuits of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) are coupled through one of the plurality of pin connecting switches (41, 42, . . . , 4(N-1)). For example, the port connecting pin IN of the first voltage converting circuit 11-1 is connected to the port connecting pin IN of the second voltage converting circuit 11-2 through the first pin connecting switch 41, the port connecting pin IN of the second voltage converting circuit 11-2 is connected to the port connecting pin IN of the third voltage converting circuit 11-3 through the second pin connecting switch 42, and so forth. When the voltage converting circuit 11-i (i=1, . . . , N) operates in the charge mode, the port connecting pin IN of the voltage converting circuit 11-i (i=1, . . . , N) may be configured to receive an input voltage signal VIN from an external power source through the corresponding one USB port 2 i. When the voltage converting circuit 11-i (i=1, . . . , N) operates in the discharge mode, e.g., a USB on-the-go (OTG) mode, the port connecting pin IN of the voltage converting circuit 11-i (i=1, . . . , N) may be configured to provide an output voltage signal VOUT to an external power sink through the corresponding one USB port 2 i.

For each i=1, 2, . . . , N, the current feedback pin IA of the voltage converting circuit 11-i may be coupled to a common connection of the corresponding port connecting switch 3 i and the port connecting pin IN of the voltage converting circuit 11-i to receive a current feedback signal. When the voltage converting circuit 11-i operates in the charge mode, the current feedback pin IA of the voltage converting circuit 11-i may be configured to receive an input current feedback signal IIN_FB indicative of a current flowing into the port connecting pin IN of the voltage converting circuit 11-i from the corresponding USB port 2 i. When the voltage converting circuit 11-i operates in the discharge mode, the current feedback pin IA of the voltage converting circuit 11-i may be configured to receive an output current feedback signal IOUT_FB indicative of a current flowing out the port connecting pin IN of the voltage converting circuit 11-i to the corresponding USB port 2 i.

For each i=1, 2, . . . , N, the address pin ADDR of a corresponding one (e.g. the voltage converting circuit 11-i) of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may be configured to instruct the corresponding one voltage converting circuit 11-i whether to operate in a single circuit application or in a multiple circuits application. In the exemplary embodiment of FIG. 1, for each i=1, 2, . . . , N, the address pin ADDR of the corresponding one voltage converting circuit 11-i may be configured to connect to the external selection indicator 50 to receive a corresponding one address signal VADDR to configure the corresponding one voltage converting circuit 11-i to operate in the single circuit application or in the multiple circuits application. The selection indicator 50 is “external” in the sense that it is not part of the corresponding one voltage converting circuit 11-i. In some embodiments, the external selection indicator 50 may comprise a resistive element, and a voltage across the resistive element may serve to indicate the corresponding one address signal VADDR. For example, a connection to ground potential (i.e., resistance of the resistive element is 0Ω) may serve to indicate the corresponding one voltage converting circuit 11-i should operate in the single circuit application while a non-zero resistance value of the resistive element (e.g., 10 KΩ, 20 KΩ, etc.) may serve to instruct the corresponding one voltage converting circuit 11-i should operate in the multiple circuits application. During the multiple circuits application, for each i=1, 2, . . . , N, the voltage converting circuit 11-i may be configured to operate in a “master” mode or in a “slave” mode through setting the resistive element to different resistance values. The address pin ADDR of the corresponding one voltage converting circuit 11-i may further be configured to program an address for the corresponding one voltage converting circuit 11-i through setting the resistive element to different resistance values at the address pin ADDR. For example, at the initialization during startup, each one of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may detect the corresponding one address signal VADDR at its address pin ADDR to determine whether the corresponding one voltage converting circuit 11-i (i=1, . . . , N) should operate in the “master” mode or in the “slave” mode. In an embodiment, the voltage converting circuit which receives the corresponding one address signal VADDR having the highest magnitude among the N address signals provided to the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may be selected as a master voltage converting circuit and operate in the “master” mode, while the remained (N-1) voltage converting circuits may serve as the slave circuits and operate in the “slave” mode. In an embodiment, the voltage converting circuit with the resistive element having the highest resistance value connected to its address pin ADDR may be selected as a master voltage converting circuit and operate in the “master” mode, while the remained (N-1) voltage converting circuits may serve as the slave circuits and operate in the “slave” mode. In an alternative embodiment, only one of the N address signals VADDR provided to the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may be different from the rest of (N-1) address signals (i.e. the rest of (N-1) address signals are the same). For this situation, only one of the N voltage converting circuits (11-1, 11-2, . . . , 11-N), which one is configured to receive the one different address signal VADDR, may serve as the master voltage converting circuit and operates in the “master” mode, while the remained (N-1) voltage converting circuits which respectively receive the rest of (N-1) same address signals VADDR may serve as the slave circuits and operate in the “slave” mode. In an alternative embodiment, wherein the N voltage converting circuits (11-1, 11-2, . . . , 11-N) are respectively coupled to N resistive elements, only one of the N resistive elements may have a different resistance value from the remained (N-1) resistive elements (i.e. the remained (N-1) resistive elements are of a same resistance value), and the voltage converting circuit which is coupled to the resistive element having the different resistance value may serve as the master voltage converting circuit and operates in the “master” mode, while the remained (N-1) voltage converting circuits may serve as the slave circuits and operate in the “slave” mode. In still other alternative embodiments, the external selection indicator 50 may be a source of a suitable analog signal or a digital signal that can serve to instruct the corresponding voltage converting circuit whether to operate in the “master” mode or in the “slave” mode.

The system pin SYS of each one of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may be connected to the system load and may be configured to provide a system voltage signal VSYS. The system pin SYS of each one of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may further be connected to a battery pack 80 e.g. through the battery switch 70.

The battery voltage pins BAT of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may be connected together to receive a battery voltage feedback signal VBAT_FB which is indicative of the voltage of the battery pack 80.

The battery current pins IBAT of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may be connected together to receive a battery current feedback signal ICHA_FB which is indicative of the current flowing through the battery pack 80.

The driving pin BG of each one of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may be connected to a control terminal of the battery switch 70. In an embodiment, only one of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) is configured to provide a driving signal BGATE to drive the battery switch 70, and the driving pins BG of the remained (N-1) voltage converting circuits are disabled. For example, in the master-slave circuits application, only the master voltage converting circuit can be configured to provide the driving signal BGATE to drive the battery switch 70, and the driving pins BG of the slave circuits may be disabled.

The ground pin GND of each one of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may be connected to the logic ground.

In the following, the operation process of the multi-port battery charge and discharge system 100 will be described in detail when it respectively operates in the charge state, the discharge state and the charge and discharge state.

In the charge state, the multi-port battery charge and discharge system 100 may be configured to supply the system load and charge the battery pack 80. The port connecting pin IN of each of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may be configured to receive the input voltage signal VIN, and to convert the input voltage signal VIN to the system voltage signal VSYS that is provided at the system pin SYS. In such an application, the multi-port battery charge and discharge system 100 may be configured to have three charging ways (configurations), i.e., a multi-source fast charging way, a multi-port fast charging way, and a parallel charging way, to supply the system load and charge the battery pack 80.

In the multi-source fast charging way, for each i=1, 2, . . . , N, the USB port 2 i of the multi-port battery charge and discharge system 100 may be connected to a corresponding one power source to draw the input voltage signal VIN to supply the port connecting pin IN of the corresponding one voltage converting circuit 11-i. Meanwhile, all of the plurality of port connecting switches (31, 32, . . . , 3N) are turned on while all of the plurality of pin connecting switches (41, 42, . . . , 4N-1) are turned off. Thus, the port connecting pin IN of each voltage converting circuit 11-i (i=1, 2, . . . , N) may receive the input voltage signal VIN from the corresponding one USB port 2 i (i=1, 2, . . . , N). In such an application, the multi-port battery charge and discharge system 100 may charge the battery pack 80 from the N USB ports (21, 22, . . . , 2N) simultaneously. In an embodiment, the power sources connected to the N USB ports (21, 22, . . . , 2N) may have different independent voltage levels, e.g., one power source may provide a voltage of 5V, and another power source may provide a voltage of 20V, and so on. In other embodiment, the power sources connected to the N USB ports (21, 22, . . . , 2N) may have the same voltage levels, e.g., all the power sources may provide a voltage of 5V.

In the multi-port fast charging way, the N USB ports (21, 22, . . . , 2N) of the multi-port battery charge and discharge system 100 may be connected to a same power source to draw the input voltage signal VIN to the port connecting pins IN of the corresponding N voltage converting circuits (11-1, 11-2, . . . , 11-N). Meanwhile, all of the plurality of port connecting switches (31, 32, . . . , 3N) are turned on while all of the plurality of pin connecting switches (41, 42, . . . , 4N-1) are turned off. Thus, the port connecting pin IN of each voltage converting circuit 11-i (i=1, 2, . . . , N) may receive the input voltage signal VIN from the corresponding one USB port 2 i (i=1, 2, . . . , N). In an embodiment, the power source in the multi-port fast charging way may comprise N USB ports, and N USB cables may be used to connect the N USB ports of the power source to the N USB ports (21, 22, . . . , 2N) of the multi-port battery charge and discharge system 100. In an alternative embodiment, the power source in the multi-port fast charging way may comprise one USB port. A USB cable which has one connector at a first terminal and N connectors at a second terminal may be used to connect the power source to the N USB ports (21, 22, . . . , 2N), wherein the first terminal having the one connector may be connected to the one USB port of the power source, and the second terminal having the N connectors may be connected to the N USB ports (21, 22, . . . , 2N) of the multi-port battery charge and discharge system 100 respectively.

In the parallel charging way, only one of the N USB ports (21, 22, . . . , 2N) of the multi-port battery charge and discharge system 100 may be connected to a power source to draw the input voltage signal VIN. In such an application, only the port connecting switch (31 or 32, . . . , or 3N) which is corresponding to the one USB port that is connected to the power source is turned on, and the remained port connecting switches are turned off. Meanwhile, the plurality of pin connecting switches (41, 42, . . . , 4N-1) are turned on. Thus, the port connecting pins IN of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may be connected together to receive the input voltage signal VIN from the one USB port that is connected to the power source. In such an application, a small size inductor may be adopted by each of the N voltage converting circuits (11-1, 11-2, . . . , 11-N).

When operating in the charge state, no matter in the multi-source fast charging way application, the multi-port fast charging way application or the parallel charging way application, the multi-port battery charge and discharge system 100 may be operated to have a configuration of master-slave circuits application through configuring the address pins ADDR of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) to assign a master circuit (e.g., the voltage converting circuit 11-1) and N-1 slave circuits (e.g., the voltage converting circuits 11-2, . . . , 11-N). Details of how to configure the N voltage converting circuits (11-1, 11-2, . . . , 11-N) into a configuration of master-slave circuits application have been described in the above context of this disclosure and will not be addressed here again.

In the charge state, the battery voltage pin BAT and the battery current pin IBAT of the master circuit are activated to respectively sense the battery voltage of the battery pack 80 and the current flowing through the battery pack 80 and to respectively generate a battery voltage feedback signal VBAT_FB and a battery current feedback signal ICHA_FB. In an embodiment, the battery voltage feedback signal VBAT_FB is indicative of the battery voltage of the battery pack 80, and the battery current feedback signal ICHA_FB is indicative of the current flowing through the battery pack 80. Furthermore, the master circuit (e.g., the voltage converting circuit 11-1 in the example of FIG. 1) is configured to generate a master current signal (e.g., the first current signal ISYS1) at its system pin SYS to supply the system load and charge the battery pack 80 based on the battery voltage feedback signal VBAT_FB and the battery current feedback signal ICHA_FB. Meanwhile, the battery voltage pin BAT, the battery current pin IBAT and the driving pin BG of each of the N-1 slave circuits (e.g., the voltage converting circuits 11-2, . . . , 11-N in the example of FIG. 1) are deactivated. The N-1 slave circuits are respectively configured to generate N-1 slave current signals (e.g., the slave current signals ISYS2, . . . , ISYSN in the example of FIG. 1) at their system pins SYS to complementally charge the battery pack 80. In an embodiment, the N-1 slave current signals may be predetermined and constant, and in such an application, each of the N-1 slave circuits may be operated as a current source to provide a predetermined and constant slave current signal. In an embodiment, the N-1 slave current signals may be the same. In other embodiment, the N-1 slave current signals may be different. For example, the first slave circuit (e.g., the voltage converting circuit 11-2 in the example of FIG. 1) may be configured to provide a first slave current signal (e.g., ISYS2) of 2A, and the N-1th slave circuit (e.g., the voltage converting circuit 11-N) may be configured to provide a N-1th slave current signal (e.g., ISYSN) of 1A.

In the discharge state, the multi-port battery charge and discharge system 100 may be configured to discharge the battery pack 80 to provide output voltage signals VOUT at port connecting pins IN of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) to supply the associated power sinks (e.g., a mobile phone, a notebook, etc.) connected to the corresponding USB ports (21, 22, . . . , 2N). In such an application, the multi-port battery charge and discharge system 100 may be configured to have two discharging ways (configurations), i.e., a multi-port fast discharging way and a parallel discharging way, to supply the power sinks. In an embodiment, the port connecting pin IN of each of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) can be configured to provide an output voltage signal VOUT with different voltage value in accordance with requirements of the USB specification, e.g., of 5V, 9V, 12V and 15V.

In the multi-port fast discharging way, all of the plurality of port connecting switches (31, 32, . . . , 3N) are turned on while the plurality of pin connecting switches (41, 42, . . . , 4N-1) are turned off. Thus each of the N USB ports 2 i (i=1, 2, . . . , N) may be connected to the port connecting pin IN through the corresponding port connecting switch 3 i (i=1, 2, . . . , N). Each of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may be configured to convert the system voltage signal VSYS to the output voltage signal VOUT and to provide the output voltage signal VOUT on its port connecting pin IN. One or more power sinks can be connected to the N USB ports (21, 22, . . . , 2N) to draw the output voltage signals VOUT. For instance, in an embodiment, one USB port 2 i (i=1, 2, . . . , N) may be connected to one power sink with a USB cable having one connector at a first terminal and one connector at a second terminal, wherein the one connector at the first terminal of the USB cable is connected to the one USB port 2 i, and the one connector at the second terminal of the USB cable is connected to the one power sink. In an alternative embodiment, one USB port 2 i (i=1, 2, . . . , N) may be connected to more than one (e.g. two or three) power sinks with a USB cable having one connector at a first terminal and more than one (e.g. two or three) connectors at a second terminal, wherein the one connector at the first terminal of the USB cable is connected to the one USB port 2 i, and the more than one connectors at the second terminal of the USB cable are respectively connected to the more than one power sinks. In an alternative embodiment, more than one (e.g. two or three) of the N USB ports may be connected to one power sink to supply the one power sink simultaneously. A USB cable having more than one (e.g. two or three) connectors at a first terminal and one connector at a second terminal may be used to couple the more than one (e.g. two or three) of the N USB ports to the one power sink, wherein the more than one connectors at the first terminal of the USB cable are respectively connected to the more than one USB ports, and the one connector at the second terminal of the USB cable is connected to the one power sink.

In the parallel discharging way, only one of the N USB ports (21, 22, . . . , 2N) may be connected to a power sink. In such an application, only the port connecting switch (31 or 32, . . . , or 3N) which is corresponding to the one USB port that is connected to the power sink is turned on, and the remained port connecting switches are turned off. Meanwhile, the plurality of pin connecting switches (41, 42, . . . , 4N-1) are turned on. Thus, the port connecting pins IN of the N voltage converting circuits may be connected together to provide the output voltage signal VOUT. A single power sink having one port may be connected to the one USB port to draw the output voltage signal VOUT.

In the charge and discharge state, a first portion of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may be configured to operate in the charge mode to supply the system load and charge the battery pack 80, and a second portion of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may be configured to operate in the discharge mode to discharge the battery pack 80 to supply the associated power sinks. The operation process of the first portion of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) operating in the charge mode may be similar to that described above for the voltage converting circuits (or for the multi-port battery charge and discharge system 100) operating at the charge state, and the operation process of the second portion of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) operating at the discharge mode may be similar to that described above for the voltage converting circuits (or for the multi-port battery charge and discharge system 100) operating at the discharge state. In detail, the first portion of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) operating in the charge mode can be configured to have three charging ways (configurations), i.e., the multi-source fast charging way, the multi-port fast charging way, and the parallel charging way, to supply the system load and charge the battery pack 80, and the second portion of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) operating in the discharge mode can be configured to have two discharging ways (configurations), i.e., the multi-port fast discharging way and the parallel discharging way, to supply the power sinks. The detailed operation processes will not be described again.

In the exemplary embodiment of FIG. 1, each one of the N voltage converting circuits (11-1, 11-2, . . . , 11-N) may comprise a switching circuit which may have both the step-up voltage function and the step-down voltage function. For each one of the N voltage converting circuits (11-1, 11-2, . . . , 11-N), when the voltage across the port connecting pin IN is lower than the system voltage VSYS, the switching circuit may be configured to operate in a step-up mode, and when the voltage across the port connecting pin IN is larger than the system voltage VSYS, the switching circuit may be configured to operate in a step-down mode. For example, the switching circuit may have a buck-boost topology. When the voltage across the port connecting pin IN is lower than the system voltage VSYS, the switching circuit may be configured to operate in a boost mode, and when the voltage across the port connecting pin IN is higher than the system voltage VSYS, the switching circuit may be configured to operate in a buck mode, and when the voltage across the port connecting pin IN is close to the system voltage VSYS, the switching circuit may be configured to operate in a buck-boost mode. In other embodiments, the switching circuit may comprise a topology circuit disclosed in the U.S. patent application Ser. No. 15/387,612 filed on Dec. 21, 2016, and U.S. patent application Ser. No. 15/387,635 filed on Dec. 21, 2016. As described above, when the voltage converting circuit operates in the charge mode, the voltage across the port connecting pin IN may indicate the input voltage signal VIN, and when the voltage converting circuit operates in the discharge mode, the voltage across the port connecting pin IN may indicate the output voltage signal VOUT.

FIG. 2 schematically illustrates a multi-port battery charge and discharge system 200 in accordance with an alternative embodiment of the present invention. Compared to the multi-port battery charge and discharge system 100, the multi-port battery charge and discharge system 200 may be configured to only charge the battery pack 80. Thus, the battery switch 70 may be omitted in the multi-port battery charge and discharge system 200. Correspondingly, the driving pin BG of each voltage converting circuit of the multi-port battery charge and discharge system 200 can be omitted. The connection relationships of the remained elements of the multi-port battery charge and discharge system 200 have been described with reference to FIG. 1, and the operation processes of the multi-port battery charge and discharge system 200 is similar to that of the multi-port battery charge and discharge system 100, thus both the connection relationships and operation processes will not be described again. In an embodiment, the multi-port battery charge and discharge system 200 may be applied in a power bank application.

FIG. 3 schematically illustrates a block diagram of a voltage converting circuit 11-i (i=1, . . . , N) in FIGS. 1 and 2 in accordance with an embodiment of the present invention.

In the exemplary embodiment of FIG. 3, the voltage converting circuit 11-i may comprise a switching circuit 101, a control circuit 102, and a plurality of feedback circuits, for example, an input/output voltage feedback circuit 103, a system voltage feedback circuit 104, and a battery voltage feedback circuit 105. It should be known to those of ordinary skill in the art that the plurality of feedback circuits are not limited to those illustrated in the embodiment shown in FIG. 3, other feedback circuits may also be included in the voltage converting circuit 11-i, such as a temperature feedback circuit.

As described above, when the voltage converting circuit 11-i operates in the charge mode, the switching circuit 101 may be configured to convert the input voltage signal VIN to the system voltage signal VSYS; when the voltage converting circuit 11-i operates in the discharge mode, the switching circuit 101 may be configured to convert the system voltage signal VSYS to the output voltage signal VOUT. The switching circuit 101 may be configured to operate in the step-up mode or the step-down mode depending on the voltage across the port connecting pin IN and the voltage value of the system voltage signal VSYS.

The input/output voltage feedback circuit 103 may be configured to sense the voltage at the port connecting pin IN to generate a voltage feedback signal. In an embodiment, for example, in the charge mode of the voltage converting circuit 11-i, the port connecting pin IN may be configured to receive the input voltage signal VIN from the corresponding USB port 2 i, thus the input/output voltage feedback circuit 103 may be configured to sense the input voltage signal VIN, and the voltage feedback signal may be illustrated as an input voltage feedback signal VIN_FB indicative of the input voltage signal VIN. In the discharge mode of the voltage converting circuit 11-i, the port connecting pin IN may be configured to provide the output voltage signal VOUT to the corresponding USB port 2 i, thus the input/output voltage feedback circuit 103 may be configured to sense the output voltage signal VOUT, and the voltage feedback signal may be illustrated as an output voltage feedback signal VOUT_FB indicative of the output voltage signal VOUT.

The system voltage feedback circuit 104 may be configured to sense the system voltage signal VSYS to generate a system voltage feedback signal VSYS_FB indicative of the system voltage signal VSYS.

The battery voltage feedback circuit 105 may be configured to sense the battery voltage to generate a battery voltage feedback signal VBAT_FB indicative of the voltage of the battery pack 80.

In the exemplary embodiment of the FIG. 3, the voltage converting circuit 11-i may be an analogy circuit and may further comprise a current setting circuit 106 coupled to a current limiting pin ILIM of the voltage converting circuit 11-i. A current limiting resistor 6 i is connected between the current limiting pin ILIM and the logic ground. When the multi-port battery charge and discharge system 100 is in the master-slave circuits application and the voltage converting circuit 11-i is operated as one of the slave circuits, the current setting circuit 106 and the current limiting resistor 6 i of the voltage converting circuit 11-i may be configured to provide a current setting signal ISET to determine the value of the current signal ISYSi which is used to complementally charge the battery pack 80. It should be noted that, in other application, the current limiting pin ILIM may be omitted, and the current setting signal ISET may be provided by an internal module of the voltage converting circuit 11-i.

The control circuit 102 may be configured to receive the voltage feedback signal (VIN_FB or VOUT_FB), the system voltage feedback signal VSYS_FB, the battery voltage feedback signal VBAT_FB, a current feedback signal from the current sense pin IA, the battery current feedback signal ICHA_FB from the battery current pin IBAT, the current setting signal ISET, the OTG signal VOTG from the mode pin OTG and the address signal VADDR from the address pin ADDR, and further configured to provide a group of switching control signals PWM to control switches of the switching circuit 101 and the driving signal BGATE to control the battery switch 70 on and off. In an embodiment, when the input voltage signal VIN is absent in the charge mode of the voltage converting 11-i, the control circuit 102 may be configured to provide the driving signal BGATE to turn on the battery switch 70 to supply the system load. In an embodiment, when any fault occurs in the multi-port battery charge and discharge system 100, the control circuit 102 may be configured to provide the driving signal BGATE to turn off the battery switch 70. In an embodiment, the address signal VADDR may be configured to determine whether the voltage converting circuit 11-i is operated as the master circuit or the slave circuit.

FIG. 4 schematically illustrates a block diagram of the switching circuit 101 and the control circuit 102 shown in FIG. 3 in accordance with an embodiment of the present invention.

In the exemplary embodiment of FIG. 4, the switching circuit 101 is illustrated to have a BUCK-BOOST topology comprising a first switch 1011, a second switch 1012, a third switch 1013, a fourth switch 1014 and an inductor 1015. The first switch 1011 and the second switch 1012 are connected between the port connecting pin IN and the logic ground. The third switch 1013 and the fourth switch 1014 are connected between the system pin SYS and the logic ground. A common connection of the first switch 1011 and the second switch 1012 is labeled as SWA, and a common connection of the third switch 1013 and the fourth switch 1014 is labeled as SWB. The inductor 1015 is connected between the common connection SWA and the common connection SWB.

In the exemplary embodiment of FIG. 4, the control circuit 102 may comprise a plurality of feedback control loops 1021-1026, a data selector 1027, a comparing circuit 1028 and a control module 1029.

Each of the feedback control loops 1021-1026 may be configured to receive a feedback signal, a ramp signal RAMP and a reference signal, and may further be configured to provide a loop control signal. In an embodiment, each of the feedback control loops 1021-1026 may comprise an operating circuit and a comparing circuit, wherein the operating circuit may be configured to provide an operating signal based on the feedback signal and the ramp signal RAMP, and the comparing circuit may be configured to provide the loop control signal through comparing the operating signal with the reference signal.

In the exemplary embodiment of FIG. 4, the feedback control loop 1021 may be an input voltage control loop 1021, which is configured to provide an input voltage loop control signal CM1 through comparing a subtraction of the input voltage feedback signal VIN_FB and the ramp signal RAMP (VIN_FB−RAMP) with an input voltage reference signal VIN_REF. The feedback control loop 1021 may comprise an operating circuit 411 and a comparing circuit 412. The operating circuit 411 is configured to receive the input voltage feedback signal VIN_FB and the ramp signal RAMP, and is configured to subtract the ramp signal RAMP from the input voltage feedback signal VIN_FB to provide an operating signal (VIN_FB−RAMP). The comparing circuit 412 may comprise an inverting input terminal coupled to the operating circuit 411 to receive the operating signal (VIN_FB-RAMP), a non-inverting input terminal configured to receive the input voltage reference signal VIN_REF, and an output terminal configured to provide the input voltage loop control signal CM1.

Feedback control loop 1022 may be an output voltage control loop 1022, which is configured to provide an output voltage loop control signal CM2 through comparing a summation of the output voltage feedback signal VOUT_FB and ramp signal RAMP (VOUT_FB+RAMP) with an output voltage reference signal VOUT_REF. The feedback control loop 1022 may comprise an operating circuit 421 and a comparing circuit 422. The operating circuit 421 is configured to receive the output voltage feedback signal VOUT_FB and the ramp signal RAMP, and is configured to superpose output voltage feedback signal VOUT_FB with the ramp signal RAMP to provide an operating signal (VOUT_FB+RAMP). The comparing circuit 422 may comprise an inverting input terminal coupled to the operating circuit 421 to receive the operating signal (VOUT_FB+RAMP), a non-inverting input terminal configured to receive the output voltage feedback signal VOUT_FB, and an output terminal configured to provide the output voltage loop control signal CM2.

Feedback control loop 1023 may be a system voltage control loop 1023, which is configured to provide a system voltage loop control signal CM3 through comparing a summation of the system voltage feedback signal VSYS_FB and the ramp signal RAMP (VSYS_FB+RAMP) with a system voltage reference signal VSYS_REF. The feedback control loop 1023 may comprise an operating circuit 431 and a comparing circuit 432. The operating circuit 431 is configured to receive the system voltage feedback signal VSYS_FB and the ramp signal RAMP, and is configured to superpose the system voltage feedback signal VSYS_FB with the ramp signal RAMP to provide an operating signal (VSYS_FB+RAMP). The comparing circuit 432 may comprise a non-inverting input terminal coupled to the operating circuit 431 to receive the operating signal (VSYS_FB+RAMP), an inverting input terminal configured to receive the system voltage reference signal VSYS_REF, and an output terminal configured to provide the system voltage loop control signal CM3.

Feedback control loop 1024 may be a battery voltage control loop 1024, which is configured to provide a battery voltage loop control signal CM4 through comparing a summation of the battery voltage feedback signal VBAT_FB and the ramp signal RAMP (VBAT_FB+RAMP) with a battery voltage reference signal VBAT_REF. The feedback control loop 1024 may comprise an operating circuit 441 and a comparing circuit 442. The operating circuit 441 is configured to receive the battery voltage feedback signal VBAT_FB and the ramp signal RAMP, and is configured to superpose the battery voltage feedback signal VBAT_FB with the ramp signal RAMP to provide an operating signal (VBAT_FB+RAMP). The comparing circuit 442 may comprise a non-inverting input terminal coupled to the operating circuit 441 to receive the operating signal (VBAT_FB+RAMP), an inverting input terminal configured to receive the battery voltage reference signal VBAT_REF, and an output terminal configured to provide the battery voltage loop control signal CM4.

Feedback control loop 1025 may be a battery current control loop 1025, which is configured to provide a battery current loop control signal CM5 through comparing a summation of the battery current feedback signal ICHA_FB and the ramp signal RAMP (ICHA_FB+RAMP) with a battery current reference signal ICHA_REF. The feedback control loop 1025 may comprise an operating circuit 451 and a comparing circuit 452. The operating circuit 451 is configured to receive the battery current feedback signal ICHA_FB and the ramp signal RAMP, and is configured to superpose the battery current feedback signal ICHA_FB with the ramp signal RAMP to provide an operating signal (ICHA_FB+RAMP). The comparing circuit 452 may comprise a non-inverting input terminal coupled to the operating circuit 451 to receive the operating signal ICHA_FB+RAMP, an inverting input terminal configured to receive the battery current reference signal ICHA_REF, and an output terminal configured to provide the battery current loop control signal CM5.

Feedback control loop 1026 may be an input/output current control loop 1026, which is configured to provide an input/output current loop control signal CM6 through comparing a summation of the input current feedback signal IIN_FB (or the output current feedback signal IOUT_FB) and the ramp signal RAMP (IIN_FB+RAMP or IOUT_FB+RAMP) with a current reference signal IREF. The feedback control loop 1026 may comprise an operating circuit 461 and a comparing circuit 462. The operating circuit 461 is configured to receive the input current feedback signal IIN_FB (or the output current feedback signal IOUT_FB) and the ramp signal RAMP, and is configured to superpose the input current feedback signal IIN_FB with the ramp signal RAMP to provide an operating signal (IIN_FB+RAMP) or to superpose the output current feedback signal IOUT_FB with the ramp signal RAMP to provide an operating signal (IOUT_FB+RAMP). The comparing circuit 462 may comprise a non-inverting input terminal coupled to the operating circuit 431 to receive the operating signal (IIN_FB+RAMP) or (IOUT_FB+RAMP), an inverting input terminal configured to receive the current reference signal IREF, and an output terminal configured to provide the current loop control signal CM6. In an embodiment, e.g., when the voltage converting circuit 11-i serves as the slave circuit and is operated in the charge mode, the current reference signal IREF may comprise the current setting signal ISET used to determine the value of the current signal ISYSi.

The data selector 1027 may be configured to receive the address signal VADDR, the OTG signal VOTG and the loop control signals CM1-CM6, and configured to select one or more appropriate loop control signals from the loop control signals CM1-CM6 according to the address signal VADDR and the OTG signal VOTG to provide a logic signal RES. In an embodiment, the logic signal RES may vary in response to change in any of the loop control signals CM1-CM6, e.g., the logic signal RES may become high voltage level when any of the loop control signals CM˜CM6 becomes high voltage level. In an embodiment, for example, when the voltage converting circuit 11-i is configured to operate in the charge mode for multiple circuits application and the converting circuit 11-i is configured for the “master” operation, the data selector 1027 may be configured to select the input voltage control loop 1021, the system voltage control loop 1023, the battery voltage control loop 1024, the battery current control loop 1025 and the input/output current control loop 1026 to provide the corresponding loop control signals CM1-CM5 while to unselect the output voltage control loop 1022. In other embodiment, for example, when the voltage converting circuit 11-i is configured to operate in the charge mode for multiple circuits application and the converting circuit 11-i is configured for the “slave” operation, the data selector 1027 may be configured to select the current loop control signal CM6 while to unselect the input voltage control loop 1021, the output voltage control loop 1022, the system voltage control loop 1023, the battery voltage control loop 1024 and the battery current control loop 1025. In other embodiments, the control circuit 102 may further comprise a system current control loop for processing a system current feedback signal indicative of the system current signal ISYSi. In such an application, when the voltage converting circuit 11-i is configured to operate in the charge mode for multiple circuits application and the converting circuit 11-i is configured for the “slave” operation, the data selector 1027 may be configured to select the system current control loop to provide a system current loop control signal while to unselect the input voltage control loop 1021, the output voltage control loop 1022, the system voltage control loop 1023, the battery voltage control loop 1024, the battery current control loop 1025 and the current control loop 1026.

The comparing circuit 1028 has a non-inverting input terminal configured to receive the input/output voltage feedback signal (the input voltage feedback signal VIN_FB in the charge mode or the output voltage feedback signal VOUT_FB in the discharge mode), an inverting input terminal configured to receive the system voltage feedback signal VSYS_FB, and an output terminal configured to provide a mode control signal MODE through comparing the input/output voltage feedback signal with the system voltage feedback signal VSYS_FB. When the input/output voltage feedback signal is higher than the system voltage feedback signal VSYS_FB, the mode control signal MODE becomes high voltage level, and the control module 1029 is configured to control the switching circuit 101 to work in the step-down mode. When the input/output voltage feedback signal is lower than the system voltage feedback signal VSYS_FB, the mode control signal MODE becomes low voltage level, and the control module 1029 is configured to control the switching circuit 101 to work in the step-up mode. The control module 1029 is coupled to the data selector 1027 to receive the logic signal RES and coupled to the comparing circuit 1028 to receive the mode control signal MODE, and is configured to provide the switching control signals PWM1-PWM4 and the driving signal BGATE based on the mode control signal MODE, and the logic signal RES.

FIG. 5 schematically illustrates a block diagram of the voltage converting circuit 11-i (i=1, . . . , N) in FIGS. 1 and 2 in accordance with an alternative embodiment of the present invention.

Similar to the voltage converting circuit 11-i of FIG. 3, the voltage converting circuit 11-i of FIG. 5 may also comprise the switching circuit 101, and a plurality of feedback circuits, for example, the input/output voltage feedback circuit 103, the system voltage feedback circuit 104, and the battery voltage feedback circuit 105. The switching circuit 101, the input/output voltage feedback circuit 103, the system voltage feedback circuit 104 and the battery voltage feedback circuit 105 of FIG. 5 are same as those of FIG. 3, thus they will not be described again. It should be known that the plurality of feedback circuits are not limited to the embodiment shown in FIG. 5, other feedback circuits may also be included in the voltage converting circuit 11-i, such as the temperature feedback circuit.

Compared to the analogy voltage converting circuit of FIG. 3, the voltage converting circuit 11-i of FIG. 5 may be a mixed analog-digital circuit. The voltage converting circuit 11-i of FIG. 5 may further comprise an Analog to Digital Converter (ADC) 107, an I2C interface circuit 108, a data pin SDA and a clock pin SCL. The ADC 107 may be configured to receive the input/output voltage feedback signal (VIN_FB/VOUT_FB), the system voltage feedback signal VSYS_FB, the input/output current feedback signal IIN_FB/IOUT_FB, the battery current feedback signal ICHA_FB, the battery voltage feedback signal VBAT_FB and the address signal VADDR, and further configured to convert these received analog signals to a plurality of digital signals DATA_IN. The I2C interface circuit 108 may be configured to communicate with an external controller (such as MCU, SCM, EC, etc.) through the data pin SDA and the clock pin SCL. The I2C interface circuit 108 may be configured to receive the plurality of digital signals DATA_IN, and to transmit the plurality of digital signals DATA_IN to the external controller through the data pin SDA, the clock pin SCL and the associated bi-direction BUS lines. The external controller may be configured to provide instruction data, e.g., for setting operation mode, changing reference parameters, etc., through the associated bi-direction BUS lines, the data pin SDA and the clock pin SCL to the I2C interface circuit 108 based on the plurality of digital signals DATA_IN. The I2C interface circuit 108 receives the instruction data from the external controller, and provides a plurality of instruction signals DATA_OUT to a control circuit 109. In such an application, the current setting circuit just like the current setting circuit 106 of FIG. 3 can be omitted in the mixed analog-digital circuit.

The control circuit 109 may be configured to receive the input/output voltage feedback signal VIN_FB/VOUTFB, the system voltage feedback signal VSYS_FB, the battery voltage feedback signal VBAT_FB, the input/output current feedback signal IIN_FB/IOUT_FB from the current sense pin IA, the battery current feedback signal ICHA_FB from the battery current pin IBAT, the OTG signal VOTG from the mode pin OTG and the plurality of instruction signals DATA_OUT, and further configured to provide a group of switching control signals PWM to control a plurality of switches of the switching circuit 101, and further configured to provide the driving signal BGATE to control the battery switch 70 on and off. In an embodiment, when any fault occurs in the multi-port battery charge and discharge system 100, the control circuit 109 may be configured to provide the driving signal BGATE to turn off the battery switch 70. It should be noted that in alternative embodiment, the voltage converting circuit 11-i may comprise a digital controlled circuit having the same functions as the voltage converting circuit of FIG. 3 and the voltage converting circuit of FIG. 5.

FIG. 6 schematically illustrates a multi-port battery charge and discharge system 600 in accordance with an embodiment of the present invention. As shown in FIG. 6, two mixed analog-digital voltage converting circuits 11-1 and 11-2 are shown for illustration. Besides the two mixed analog-digital voltage converting circuits 11-1 and 11-2, the multi-port battery charge and discharge system 600 may further comprise the USB port 21, the USB port 22, the port connecting switch 31, the port connecting switch 32, the pin connecting switch 41, the pin connecting switch 42, the external selection indicator 50, the mode selection indicator 60, the battery switch 70, the battery pack 80, a port controller 61, a port controller 62 and a MCU 63.

In the exemplary embodiment of FIG. 6, the mode pins OTG of the first voltage converting circuit 11-1 and the second voltage converting circuit 11-2 are respectively coupled to the mode selection indicator 60 to receive the OTG signal VOTG to determine whether the first voltage converting circuit 11-1 and the second voltage converting circuit 11-2 should operate in the charge mode or in the discharge mode. As mentioned in the embodiment of FIG. 1, when the OTG signal VOTG is at the high logic state, the corresponding voltage converting circuit may operate in the charge mode, when the OTG signal VOTG is at the low logic state, the corresponding voltage converting circuit may operate in the discharge mode.

The port connecting pin IN of the first voltage converting circuit 11-1 may be coupled to the USB port 21 through the port connecting switch 31. The port connecting pin IN of the second voltage converting circuit 11-2 may be coupled to the USB port 22 through the port connecting switch 32. The port connecting pin IN of the first voltage converting circuit 11-1 and the port connecting pin IN of the second voltage converting circuit 11-2 are coupled together through the pin connecting switch 41.

The current feedback pin IA of the first voltage converting circuit 11-1 may be coupled to the common connection of the port connecting switch 31 and the port connecting pin IN of the first voltage converting circuit 11-1 to receive the current feedback signal IIN_FB/IOUT_FB. The current feedback pin IA of the second voltage converting circuit 11-2 may be coupled to the common connection of the port connecting switch 32 and the port connecting pin IN of the second voltage converting circuit 11-2 to receive the current feedback signal IIN_FB/IOUT_FB.

The address pins ADDR of the first voltage converting circuit 11-1 and the second voltage converting circuit 11-2 are respectively connected to the external selection indicator 50. In the exemplary embodiment of FIG. 6, the external selection indicator 50 coupled to the address pin ADDR of the first voltage converting circuit 11-1 is illustrated as an address resistor 51 coupled between the address pin ADDR of the first voltage converting circuit 11-1 and the logic ground, and the external selection indicator 50 coupled to the address pin ADDR of the second voltage converting circuit 11-2 is illustrated as an address resistor 52 coupled between the address pin ADDR of the second voltage converting circuit 11-2 and the logic ground. In an embodiment, the resistance of the resistor 51 and the resistance of the address resistors 52 are different.

The system pin SYS of the first voltage converting circuit 11-1 and the system pin SYS of the second voltage converting circuit 11-2 may be connected together to the system load and the battery pack 80 through the battery switch 70, and each of the two voltage converting circuits 11-1 and 11-2 may be configured to provide the system voltage signal VSYS at the system pins SYS.

The battery voltage pin BAT of the first voltage converting circuit 11-1 and the battery voltage pin BAT of the second voltage converting circuit 11-2 may be connected together to receive a battery voltage feedback signal VBAT_FB which is indicative of the voltage of the battery pack 80.

The battery current pin IBAT of the first voltage converting circuit 11-1 and the battery current pin IBAT of the second voltage converting circuit 11-2 may be connected together to receive a battery current feedback signal ICHA_FB which is indicative of the current flowing through the battery pack 80.

The driving pin BG of the first voltage converting circuit 11-1 and the driving pin BG of the second voltage converting circuit 11-2 may be connected together to the control terminal of the battery switch 70. In an embodiment, the first voltage converting circuit 11-1 is configured to provide the driving signal BGATE to drive the battery switch 70, and the driving pin BG of the second voltage converting circuit 11-2 is disabled. In other embodiment, the first voltage converting circuit 11-1 is disabled, and the driving pin BG of the second voltage converting circuit 11-2 is configured to provide the driving signal BGATE to drive the battery switch 70.

The ground pin GND of the first voltage converting circuit 11-1 and the ground pin GND of the second voltage converting circuit 11-2 may be connected to the logic ground.

The clock pin SCL of the first voltage converting circuit 11-1 and the clock pin SCL of the second voltage converting circuit 11-2 may be connected together to the clock pin SCL of the MCU 63. The data pin SDA of the first voltage converting circuit 11-1 and the data pin SDA of the second voltage converting circuit 11-2 may be connected together to the data pin SDA of the MCU 63.

The port controller 61 may be coupled between the USB port 21 and the MCU 63. The port controller 62 may be coupled between the USB port 22 and the MCU 63. The port controller 61 and the port controller 62 may be appropriately chosen in accordance with requirements of the USB specification. In an embodiment, in a USB-Power Delivery (USB PD) charging application, the port controller 61 may comprise a PD controller. In an embodiment, in the USB- Type-C (TC) charging application, the port controller 61 may comprise a TC controller.

The port controller 61 may be configured to sense a voltage and a current of the USB port 21, and transmit the sensed voltage and the sensed current to the MCU 63. The port controller 62 may be configured to sense a voltage and a current of the USB port 22, and transmit the sensed voltage and the sensed current to the MCU 63. The MCU 63 may be configured to receive and process the sensed voltages and sensed currents from the port controller 61 and the port controller 62, and further configured to output instruction data to the port controller 61 to control the voltage and the current of the USB port 21, and to the port controller 62 to control the voltage and the current of the USB port 22. In the exemplary embodiment of FIG. 6, both the port controller 61 and the port controller 62 may also comprise a data pin SDA and a clock pin SCL, and the port controller 61 and the port controller 62 are communicated with the MCU 63 through the data pin SDA, the clock pin SCL and the corresponding bi-direction BUS lines. Furthermore, the MCU 63 may further be configured to generate a group of switching control signals SW1-SW3 to respectively control the port connecting switch 31, the port connecting switch 32 and the pin connecting switch 41 on and off. Then, the multi-port battery charge and discharge system 600 may be able to have a configuration of the multi-source fast charging way, the multi-port fast charging way, the parallel charging way, the multi-port fast discharging way or the parallel discharging way according to different applications.

Obviously many modifications and variations of the present invention are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims the invention may be practiced otherwise than as specifically described. It should be understood, of course, the foregoing invention relates only to a preferred embodiment (or embodiments) of the invention and that numerous modifications may be made therein without departing from the spirit and the scope of the invention as set forth in the appended claims. Various modifications are contemplated and they obviously will be resorted to by those skilled in the art without departing from the spirit and the scope of the invention as hereinafter defined by the appended claims as only a preferred embodiment(s) thereof has been disclosed. 

We claim:
 1. A multi-port battery charge and discharge system, comprising: a plurality of voltage converting circuits; a plurality of USB ports, corresponding to the plurality of voltage converting circuits; and a plurality of port connecting switches, corresponding to the plurality of voltage converting circuits; wherein each one of the plurality of voltage converting circuits comprises a first pin coupled to a corresponding one of the plurality of USB ports through a corresponding one of the plurality of port connecting switches, and a second pin coupled to a battery pack; and wherein when the multi-port battery charge and discharge system is configured to operate in a charge state, the plurality of voltage converting circuits are configured to operate in a charge mode, wherein one of the plurality of voltage converting circuits is configured to generate a master current signal at its second pin and to regulate the master current signal based on a voltage feedback signal indicative of a voltage of the battery pack and a current feedback signal indicative of a current flowing through the battery pack, and wherein each one of the remained ones of the plurality of voltage converting circuits is configured to generate a predetermined supplemental current signal at its second pin.
 2. The multi-port battery charge and discharge system of claim 1, further comprising: a plurality of pin connecting switches, wherein the first pins of every two successively neighboring voltage converting circuits of the plurality of voltage converting circuits are coupled to each other through one of the plurality of pin connecting switches.
 3. The multi-port battery charge and discharge system of claim 2, wherein when the multi-port battery charge and discharge system is configured to operate in the charge state, the plurality of port connecting switches are turned on while the plurality of pin connecting switches are turned off, and each one of the plurality of USB ports is coupled to a corresponding one of a plurality of power sources or to a same power source.
 4. The multi-port battery charge and discharge system of claim 2, wherein when the multi-port battery charge and discharge system is configured to operate in the charge state, one USB port of the plurality of USB ports is coupled to a power source, and wherein the corresponding one port connecting switch which is coupled to the one USB port that is coupled to the power source is turned on while the remained port connecting switches of the plurality of port connecting switches are turned off, and wherein the plurality of pin connecting switches are turned on.
 5. The multi-port battery charge and discharge system of claim 1, wherein when the multi-port battery charge and discharge system is configured to operate in a discharge state, each one of the plurality of voltage converting circuits is configured to operate in a discharge mode to convert the voltage of the battery pack to a corresponding one output voltage signal at its first pin.
 6. The multi-port battery charge and discharge system of claim 5, further comprising: a plurality of pin connecting switches, wherein the first pins of every two successively neighboring voltage converting circuits of the plurality of voltage converting circuits are coupled to each other through one of the plurality of pin connecting switches.
 7. The multi-port battery charge and discharge system of claim 6, wherein when the multi-port battery charge and discharge system is configured to operate in the discharge state, the plurality of port connecting switches are turned on while the plurality of pin connecting switches are turned off.
 8. The multi-port battery charge and discharge system of claim 6, wherein when the multi-port battery charge and discharge system is configured to operate in the discharge state, one USB port of the plurality of USB ports is coupled to a power sink, and wherein the corresponding one port connecting switch which is coupled to the one USB port that is coupled to the power sink is turned on while the remained port connecting switches of the plurality of port connecting switches are turned off, and wherein the plurality of pin connecting switches are turned on.
 9. The multi-port battery charge and discharge system of claim 1, wherein when the multi-port battery charge and discharge system is configured to operate in a charge and discharge state, a first portion of the plurality of voltage converting circuits is configured to operate in a charge mode while a second portion of the plurality of voltage converting circuits is configured to operate in a discharge mode.
 10. The multi-port battery charge and discharge system of claim 9, wherein when the multi-port battery charge and discharge system is configured to operate in the charge and discharge state, one voltage converting circuit in the first portion of the plurality of voltage converting circuits is configured to generate a master current signal at its second pin and to regulate the master current signal based on the voltage feedback signal indicative of the voltage of the battery pack and the current feedback signal indicative of the current flowing through the battery pack.
 11. The multi-port battery charge and discharge system of claim 9, wherein when the multi-port battery charge and discharge system is configured to operate in the charge and discharge state, each one voltage converting circuit in the second portion of the plurality of voltage converting circuits is configured to convert the voltage of the battery pack to a corresponding one output voltage signal at its first pin.
 12. The multi-port battery charge and discharge system of claim 1, wherein each one of the plurality of voltage converting circuits further comprises a third pin, and wherein the third pin of a corresponding one of the plurality of voltage converting circuits is configured to instruct the corresponding one of the plurality of voltage converting circuits whether to operate in a single circuit application or in a multiple circuits application.
 13. The multi-port battery charge and discharge system of claim 12, wherein in the multiple circuits application, the third pin of a corresponding one of the plurality of voltage converting circuits is further configured to instruct the corresponding one of the plurality of voltage converting circuits whether to operate as a mater circuit or as a slave circuit.
 14. The multi-port battery charge and discharge system of claim 12, wherein the third pin of a corresponding one of the plurality of voltage converting circuits is configured to receive a corresponding one address signal to instruct the corresponding one of the plurality of voltage converting circuits whether to operate in a single circuit application or in a multiple circuits application.
 15. The multi-port battery charge and discharge system of claim 12, wherein the third pin of a corresponding one of the plurality of voltage converting circuits is connected to a logic ground through a corresponding one resistive element.
 16. The multi-port battery charge and discharge system of claim 1, wherein each one of the plurality of voltage converting circuits further comprises a fourth pin, and wherein the fourth pin of a corresponding one of the plurality of voltage converting circuits is configured to set the corresponding one of the plurality of voltage converting circuits to operate in the charge mode or in a discharge mode.
 17. The multi-port battery charge and discharge system of claim 1, wherein each one of the plurality of voltage converting circuits further comprises a fifth pin connected to a microprocessor, and wherein the predetermined supplemental current signal is predetermined by the microprocessor.
 18. The multi-port battery charge and discharge system of claim 17, wherein the fifth pin of a corresponding one of the plurality of voltage converting circuits is connected through a corresponding one current limiting resistor to a logic ground instead of to the microprocessor.
 19. The multi-port battery charge and discharge system of claim 17, further comprising: a plurality of port controllers, wherein each one of the plurality of port controllers is coupled between a corresponding one of the plurality of USB ports and the microprocessor, and is configured to detect and control a port voltage signal at the corresponding one USB port and a port current signal flowing through the corresponding one USB port, and further configured to transmit the port voltage signal and the port current signal of the corresponding one USB port to the microprocessor.
 20. A multi-port battery charge and discharge system, comprising: a first voltage converting circuit, comprising a first pin coupled to a first USB port through a first port connecting switch, and a second pin coupled to a battery pack; and a second voltage converting circuit, comprising a first pin coupled to a second USB port through a second port connecting switch, and a second pin coupled to the battery pack; wherein when the multi-port battery charge and discharge system is configured to operate in a charge state, the first voltage converting circuit is configured to operate in a charge mode to generate a first current signal at its second pin, and wherein the first current signal is regulated based on a voltage feedback signal indicative of a voltage of the battery pack and a current feedback signal indicative of a current flowing through the battery pack, and wherein the second voltage converting circuit is configured to operate in the charge mode to generate a second current signal at its second pin, and wherein the second current signal is predetermined and constant. 